import type { VmoxRouteLocationNamedRaw } from "@src/router/use.lib";

export const userMenuSampleData:VmoxRouteLocationNamedRaw[] = [
  {
    label:'ENMOTION-1',
    icon:'icon-type_line',
    name:'enmotion1',
    query:{name:'queryname1'},
    params:{name:'name1',tanentId:'id1'},
    template:{
      pageKey:'TestPg',
      parent:'main-pg',
      route:{
        path:'/enmotion1/:name/:tanentId',
        meta:{
          keepAlive:true,
          pageName:'enmotion1'
        },
      }
    },
    children:[
      {
        label:'ENMOTION-11',
        icon:'icon-type_line',
        name:'enmotion11',
        query:{name:'queryname1'},
        params:{name:'name11',tanentId:'id1'},
        template:{
          pageKey:'TestPg',
          parent:'main-pg',
          route:{
            path:'/enmotion11/:name/:tanentId',
            meta:{
              keepAlive:true,
              pageName:'enmotion11'
            },
          }
        },
      },
      {
        label:'ENMOTION-12',
        icon:'icon-type_line',
        name:'enmotion12',
        query:{name:'queryname1'},
        params:{name:'name12',tanentId:'id1'},
        template:{
          pageKey:'TestPg',
          parent:'main-pg',
          route:{
            path:'/enmotion12/:name/:tanentId',
            meta:{
              keepAlive:true,
              pageName:'enmotion12'
            },
          }
        },
      },
    ]
  },
  {
    name:'enmotion2',
    icon:'icon-type_line',
    query:{name:'queryname2'},
    params:{name:'name2',tanentId:'id2'},
    template:{
      pageKey:'TestPg',
      parent:'main-pg',
      route:{
        path:'/enmotion2/:name/:tanentId',
        meta:{
          keepAlive:true,
          pageName:'enmotion1'
        }
      }
    }
  },
  {
    label:'测试1页面',
    icon:'icon-type_line',
    name:'enmotion3',
    query:{name:'enmotion'},
    params:{name:'enmotion'},
    template:{
      pageKey:'TestPg',
      parent:'main-pg',
      route:{
        path:'/enmotion3/:name',
        meta:{
          keepAlive:true,
          pageName:'enmotion1'
        }
      }
    }
  },
  {
    label:'测试1页面',
    icon:'icon-type_line',
    name:'enmotion4',
    query:{name:'enmotion'},
    params:{name:'enmotion'},
    template:{
      pageKey:'TestPg',
      parent:'main-pg',
      route:{
        path:'/enmotion4/:name',
        meta:{
          keepAlive:false,
          pageName:'enmotion1'
        }
      }
    }
  },
  {
    label:'画布Konva',
    icon:'icon-type_line',
    name:'konva-pg',
    params:{name:'queryname1'},
    template:{
      pageKey:'KonvaPg',
      parent:'main-pg',
      route:{
        path:'/konva-pg/:name',
        meta:{
          keepAlive:true,
          tokenRequire:false,
          pageName:'konvapg'
        }
      }
    }
  },
  {
    label:'数字动画',
    icon:'icon-type_line',
    name:'tween-number-pg',
    params:{name:'queryname1'},
    template:{
      pageKey:'TweenNumberPg',
      parent:'main-pg',
      route:{
        path:'/tween-pg/:name',
        meta:{
          keepAlive:true,
          tokenRequire:false,
          pageName:'enmotion1'
        }
      }
    }
  },
  {
    label:'主题页面',
    icon:'icon-type_line',
    name:'theme-pg-s',
    params:{name:'queryname1'},
    template:{
      pageKey:'ThemePg',
      parent:'main-pg',
      route:{
        path:'/theme-pg-s/:name',
        meta:{
          keepAlive:true,
          tokenRequire:false,
          pageName:'enmotion1'
        }
      }
    }
  },
  {
    label:'测试1页面',
    icon:'icon-type_line',
    name:'test-catch3',
    params:{name:'queryname1'},
    template:{
      pageKey:'CatchTestPg',
      // parent:'main-pg',
      route:{
        path:'/test-catch/:name',
        meta:{
          keepAlive:true,
          tokenRequire:false,
          pageName:'enmotion1'
        }
      }
    }
  },
  {
    label:'测试1页面',
    icon:'icon-type_line',
    name:'sub01-theme-pg',
    params:{name:'sub01',route:encodeURIComponent(JSON.stringify({name:'theme-pg',query:{name:'mod',age:12}}))},
    template:{
      pageKey:'MicroEmbedPg',
      parent:'main-pg',
      route:{
        path:'/sub01-theme-pg/:name/:route',
        meta:{
          keepAlive:true,
          tokenRequire:false,
          pageName:'enmotion1'
        },
        props:true,
      }
    }
  },
  {
    label:'测试1页面',
    icon:'icon-type_line',
    name:'sub01-enmotion1',
    params:{name:'sub01',route:encodeURIComponent(JSON.stringify({name:'enmotion1',params:{name:'mod',tanentId:12}}))},
    query:{sex:'male',age:12},
    template:{
      pageKey:'MicroEmbedPg',
      parent:'main-pg',
      route:{
        path:'/sub01-enmotion1/:name/:route',
        meta:{
          keepAlive:true,
          tokenRequire:false,
          pageName:'enmotion1'
        },
        props:true,
      }
    }
  },
  {
    label:'测试1页面',
    icon:'icon-type_line',
    name:'sub02-enmotion1',
    params:{name:'sub02',route:encodeURIComponent(JSON.stringify({name:'enmotion1',params:{name:'mod',tanentId:12}}))},
    template:{
      pageKey:'MicroEmbedPg',
      parent:'main-pg',
      route:{
        path:'/sub02-enmotion1/:name/:route',
        meta:{
          keepAlive:true,
          tokenRequire:false,
          pageName:'enmotion1'
        },
        props:true,
      }
    }
  },
]